.class public Lcn/sharesdk/evernote/f;
.super Lcn/sharesdk/framework/f;


# static fields
.field private static b:Lcn/sharesdk/evernote/f;


# instance fields
.field private c:Lcn/sharesdk/framework/utils/f;

.field private d:Ljava/lang/String;

.field private e:Lcn/sharesdk/evernote/a;


# direct methods
.method private constructor <init>(Lcn/sharesdk/framework/Platform;)V
    .registers 3

    invoke-direct {p0, p1}, Lcn/sharesdk/framework/f;-><init>(Lcn/sharesdk/framework/Platform;)V

    new-instance v0, Lcn/sharesdk/framework/utils/f;

    invoke-direct {v0}, Lcn/sharesdk/framework/utils/f;-><init>()V

    iput-object v0, p0, Lcn/sharesdk/evernote/f;->c:Lcn/sharesdk/framework/utils/f;

    return-void
.end method

.method public static a(Lcn/sharesdk/framework/Platform;)Lcn/sharesdk/evernote/f;
    .registers 2

    sget-object v0, Lcn/sharesdk/evernote/f;->b:Lcn/sharesdk/evernote/f;

    if-nez v0, :cond_b

    new-instance v0, Lcn/sharesdk/evernote/f;

    invoke-direct {v0, p0}, Lcn/sharesdk/evernote/f;-><init>(Lcn/sharesdk/framework/Platform;)V

    sput-object v0, Lcn/sharesdk/evernote/f;->b:Lcn/sharesdk/evernote/f;

    :cond_b
    sget-object v0, Lcn/sharesdk/evernote/f;->b:Lcn/sharesdk/evernote/f;

    return-object v0
.end method

.method private a(Landroid/content/Context;)Ljava/lang/String;
    .registers 5

    :try_start_0
    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v0, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v1

    iget v1, v1, Landroid/content/pm/PackageInfo;->versionCode:I

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v2, " Android/"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v1

    if-nez v1, :cond_90

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " ("

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Ljava/util/Locale;->US:Ljava/util/Locale;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ");"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_4b
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "Android/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "; "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Landroid/os/Build;->MODEL:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ";"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_8f
    return-object v0

    :cond_90
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v2, " ("

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v1}, Ljava/util/Locale;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "); "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
    :try_end_b0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_b0} :catch_b2

    move-result-object v0

    goto :goto_4b

    :catch_b2
    move-exception v0

    invoke-static {v0}, Lcn/sharesdk/framework/utils/e;->b(Ljava/lang/Throwable;)I

    const/4 v0, 0x0

    goto :goto_8f
.end method

.method private a(Ljava/util/ArrayList;Ljava/util/ArrayList;)Ljava/lang/String;
    .registers 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcn/sharesdk/evernote/g",
            "<*>;>;",
            "Ljava/util/ArrayList",
            "<",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;)",
            "Ljava/lang/String;"
        }
    .end annotation

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v0, "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE en-note SYSTEM \"http://xml.evernote.com/pub/enml2.dtd\"><en-note>"

    invoke-direct {v2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    if-eqz p1, :cond_9f

    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_d
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_9a

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/sharesdk/evernote/g;

    const-string v1, "<p>"

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, v0, Lcn/sharesdk/evernote/g;->a:Ljava/lang/Object;

    instance-of v1, v1, Ljava/lang/String;

    if-eqz v1, :cond_33

    iget-object v0, v0, Lcn/sharesdk/evernote/g;->a:Ljava/lang/Object;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_2d
    :goto_2d
    const-string v0, "</p>"

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_d

    :cond_33
    iget-object v1, v0, Lcn/sharesdk/evernote/g;->a:Ljava/lang/Object;

    instance-of v1, v1, Ljava/io/File;

    if-eqz v1, :cond_2d

    iget-object v0, v0, Lcn/sharesdk/evernote/g;->a:Ljava/lang/Object;

    check-cast v0, Ljava/io/File;

    new-instance v1, Ljava/io/FileInputStream;

    invoke-direct {v1, v0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    new-instance v4, Ljava/io/BufferedInputStream;

    invoke-direct {v4, v1}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;)V

    invoke-static {v4}, Lcn/sharesdk/evernote/g;->a(Ljava/io/InputStream;)[B

    move-result-object v5

    invoke-virtual {v4}, Ljava/io/BufferedInputStream;->close()V

    new-instance v4, Ljava/util/HashMap;

    invoke-direct {v4}, Ljava/util/HashMap;-><init>()V

    const-string v1, "bodyHash"

    invoke-virtual {v4, v1, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v1, "size"

    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v6

    long-to-int v6, v6

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v4, v1, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v1, "mBodyFile"

    invoke-virtual {v4, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-static {}, Ljava/net/URLConnection;->getFileNameMap()Ljava/net/FileNameMap;

    move-result-object v1

    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-interface {v1, v6}, Ljava/net/FileNameMap;->getContentTypeFor(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_7f

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v6

    if-gtz v6, :cond_81

    :cond_7f
    const-string v1, "application/octet-stream"

    :cond_81
    const-string v6, "mime"

    invoke-virtual {v4, v6, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v6, "fileName"

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v6, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-virtual {p2, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-static {v5, v1}, Lcn/sharesdk/evernote/g;->a([BLjava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_2d

    :cond_9a
    const-string v0, "</en-note>"

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_9f
    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/util/HashMap;
    .registers 14
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation

    const/4 v6, 0x0

    const/16 v9, 0xc

    const/4 v8, 0x2

    const/4 v5, 0x1

    const/16 v4, 0xb

    if-nez p2, :cond_b

    move-object v0, v6

    :goto_a
    return-object v0

    :cond_b
    iget-object v1, p0, Lcn/sharesdk/evernote/f;->d:Ljava/lang/String;

    new-instance v0, Lcn/sharesdk/evernote/c;

    invoke-direct {v0}, Lcn/sharesdk/evernote/c;-><init>()V

    invoke-virtual {v0}, Lcn/sharesdk/evernote/c;->a()I

    move-result v7

    new-instance v3, Lcn/sharesdk/framework/a/a;

    invoke-direct {v3}, Lcn/sharesdk/framework/a/a;-><init>()V

    const-string v2, "createNotebook"

    invoke-virtual {v0, v2, v5}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;I)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v0, v4, v5}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    iget-object v2, p0, Lcn/sharesdk/evernote/f;->a:Lcn/sharesdk/framework/Platform;

    invoke-virtual {v2}, Lcn/sharesdk/framework/Platform;->getDb()Lcn/sharesdk/framework/PlatformDb;

    move-result-object v2

    invoke-virtual {v2}, Lcn/sharesdk/framework/PlatformDb;->getToken()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v0, v9, v8}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v0, v4, v8}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v0, p2}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    if-eqz p3, :cond_61

    invoke-virtual {v0, v4, v9}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v0, p3}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    :cond_61
    invoke-virtual {v0}, Lcn/sharesdk/evernote/c;->b()[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v0}, Lcn/sharesdk/evernote/c;->b()[B

    move-result-object v0

    invoke-virtual {v3, v0}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "Content-Type"

    const-string v5, "application/x-thrift"

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "Cache-Control"

    const-string v5, "no-transform"

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "Accept"

    const-string v5, "application/x-thrift"

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "User-Agent"

    invoke-direct {p0, p1}, Lcn/sharesdk/evernote/f;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcn/sharesdk/framework/a/h;->a()Lcn/sharesdk/framework/a/h;

    move-result-object v0

    invoke-virtual {p0}, Lcn/sharesdk/evernote/f;->c()I

    move-result v5

    move-object v4, v1

    invoke-virtual/range {v0 .. v5}, Lcn/sharesdk/framework/a/h;->a(Ljava/lang/String;Ljava/util/ArrayList;Lcn/sharesdk/framework/a/c;Ljava/lang/String;I)Ljava/io/InputStream;

    move-result-object v0

    if-nez v0, :cond_b8

    move-object v0, v6

    goto/16 :goto_a

    :cond_b8
    new-instance v1, Lcn/sharesdk/evernote/b;

    invoke-direct {v1}, Lcn/sharesdk/evernote/b;-><init>()V

    invoke-virtual {v1, v0, v7}, Lcn/sharesdk/evernote/b;->a(Ljava/io/InputStream;I)V

    invoke-virtual {v1}, Lcn/sharesdk/evernote/b;->a()I

    move-result v0

    const/4 v2, 0x3

    if-ne v0, v2, :cond_d1

    new-instance v0, Ljava/lang/Throwable;

    invoke-virtual {v1}, Lcn/sharesdk/evernote/b;->c()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/Throwable;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_d1
    new-instance v0, Lcn/sharesdk/evernote/l;

    invoke-direct {v0, v1}, Lcn/sharesdk/evernote/l;-><init>(Lcn/sharesdk/evernote/b;)V

    invoke-virtual {v0}, Lcn/sharesdk/evernote/l;->a()Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v1}, Lcn/sharesdk/evernote/b;->j()V

    goto/16 :goto_a
.end method

.method private a(Ljava/util/HashMap;Lcn/sharesdk/framework/a/e;Lcn/sharesdk/evernote/c;)V
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;",
            "Lcn/sharesdk/framework/a/e;",
            "Lcn/sharesdk/evernote/c;",
            ")V"
        }
    .end annotation

    const/16 v5, 0xc

    const/4 v3, 0x3

    const/16 v4, 0xb

    new-instance v1, Lcn/sharesdk/framework/a/a;

    invoke-direct {v1}, Lcn/sharesdk/framework/a/a;-><init>()V

    invoke-virtual {p3, v5, v3}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v0

    invoke-virtual {v1, v0}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const/4 v0, 0x1

    invoke-virtual {p3, v4, v0}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v0

    invoke-virtual {v1, v0}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const-string v0, "bodyHash"

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [B

    check-cast v0, [B

    invoke-virtual {p3, v0}, Lcn/sharesdk/evernote/c;->a([B)[B

    move-result-object v0

    invoke-virtual {v1, v0}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const/16 v0, 0x8

    const/4 v2, 0x2

    invoke-virtual {p3, v0, v2}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v0

    invoke-virtual {v1, v0}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const-string v0, "size"

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-virtual {p3, v0}, Lcn/sharesdk/evernote/c;->a(I)[B

    move-result-object v0

    invoke-virtual {v1, v0}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {p3, v4, v3}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v0

    invoke-virtual {v1, v0}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {p2, v1}, Lcn/sharesdk/framework/a/e;->a(Lcn/sharesdk/framework/a/c;)Lcn/sharesdk/framework/a/e;

    const-string v0, "mBodyFile"

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v2

    long-to-int v2, v2

    invoke-virtual {p3, v2}, Lcn/sharesdk/evernote/c;->a(I)[B

    move-result-object v2

    invoke-virtual {v1, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    new-instance v1, Lcn/sharesdk/framework/a/b;

    invoke-direct {v1}, Lcn/sharesdk/framework/a/b;-><init>()V

    invoke-virtual {v1, v0}, Lcn/sharesdk/framework/a/b;->a(Ljava/io/File;)V

    invoke-virtual {p2, v1}, Lcn/sharesdk/framework/a/e;->a(Lcn/sharesdk/framework/a/c;)Lcn/sharesdk/framework/a/e;

    new-instance v0, Lcn/sharesdk/framework/a/a;

    invoke-direct {v0}, Lcn/sharesdk/framework/a/a;-><init>()V

    invoke-virtual {p3}, Lcn/sharesdk/evernote/c;->b()[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const/4 v1, 0x4

    invoke-virtual {p3, v4, v1}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const-string v1, "mime"

    invoke-virtual {p1, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p3, v1}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;)[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {p3, v5, v4}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const/16 v1, 0xa

    invoke-virtual {p3, v4, v1}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const-string v1, "fileName"

    invoke-virtual {p1, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p3, v1}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;)[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {p3}, Lcn/sharesdk/evernote/c;->b()[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {p3}, Lcn/sharesdk/evernote/c;->b()[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {p2, v0}, Lcn/sharesdk/framework/a/e;->a(Lcn/sharesdk/framework/a/c;)Lcn/sharesdk/framework/a/e;

    return-void
.end method

.method private b(Landroid/content/Context;Ljava/lang/String;)Ljava/util/HashMap;
    .registers 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation

    const/4 v4, 0x1

    const/4 v6, 0x0

    if-nez p2, :cond_6

    move-object v0, v6

    :goto_5
    return-object v0

    :cond_6
    iget-object v1, p0, Lcn/sharesdk/evernote/f;->d:Ljava/lang/String;

    new-instance v0, Lcn/sharesdk/evernote/c;

    invoke-direct {v0}, Lcn/sharesdk/evernote/c;-><init>()V

    invoke-virtual {v0}, Lcn/sharesdk/evernote/c;->a()I

    move-result v7

    new-instance v3, Lcn/sharesdk/framework/a/a;

    invoke-direct {v3}, Lcn/sharesdk/framework/a/a;-><init>()V

    const-string v2, "listNotebooks"

    invoke-virtual {v0, v2, v4}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;I)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const/16 v2, 0xb

    invoke-virtual {v0, v2, v4}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    iget-object v2, p0, Lcn/sharesdk/evernote/f;->a:Lcn/sharesdk/framework/Platform;

    invoke-virtual {v2}, Lcn/sharesdk/framework/Platform;->getDb()Lcn/sharesdk/framework/PlatformDb;

    move-result-object v2

    invoke-virtual {v2}, Lcn/sharesdk/framework/PlatformDb;->getToken()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v0}, Lcn/sharesdk/evernote/c;->b()[B

    move-result-object v0

    invoke-virtual {v3, v0}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "Content-Type"

    const-string v5, "application/x-thrift"

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "Cache-Control"

    const-string v5, "no-transform"

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "Accept"

    const-string v5, "application/x-thrift"

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "User-Agent"

    invoke-direct {p0, p1}, Lcn/sharesdk/evernote/f;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcn/sharesdk/framework/a/h;->a()Lcn/sharesdk/framework/a/h;

    move-result-object v0

    invoke-virtual {p0}, Lcn/sharesdk/evernote/f;->c()I

    move-result v5

    move-object v4, v1

    invoke-virtual/range {v0 .. v5}, Lcn/sharesdk/framework/a/h;->a(Ljava/lang/String;Ljava/util/ArrayList;Lcn/sharesdk/framework/a/c;Ljava/lang/String;I)Ljava/io/InputStream;

    move-result-object v0

    if-nez v0, :cond_89

    move-object v0, v6

    goto/16 :goto_5

    :cond_89
    new-instance v1, Lcn/sharesdk/evernote/b;

    invoke-direct {v1}, Lcn/sharesdk/evernote/b;-><init>()V

    invoke-virtual {v1, v0, v7}, Lcn/sharesdk/evernote/b;->a(Ljava/io/InputStream;I)V

    invoke-virtual {v1}, Lcn/sharesdk/evernote/b;->a()I

    move-result v0

    const/4 v2, 0x3

    if-ne v0, v2, :cond_a2

    new-instance v0, Ljava/lang/Throwable;

    invoke-virtual {v1}, Lcn/sharesdk/evernote/b;->c()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/Throwable;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_a2
    new-instance v0, Lcn/sharesdk/evernote/k;

    invoke-direct {v0, v1}, Lcn/sharesdk/evernote/k;-><init>(Lcn/sharesdk/evernote/b;)V

    invoke-virtual {v0}, Lcn/sharesdk/evernote/k;->a()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v1}, Lcn/sharesdk/evernote/b;->j()V

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_b2
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_d0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    const-string v2, "name"

    invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p2, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_b2

    goto/16 :goto_5

    :cond_d0
    move-object v0, v6

    goto/16 :goto_5
.end method


# virtual methods
.method public a()Ljava/util/HashMap;
    .registers 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    const/4 v7, 0x0

    const/4 v3, 0x0

    iget-object v0, p0, Lcn/sharesdk/evernote/f;->e:Lcn/sharesdk/evernote/a;

    invoke-virtual {v0}, Lcn/sharesdk/evernote/a;->a()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "oauth_callback"

    invoke-virtual {p0}, Lcn/sharesdk/evernote/f;->getRedirectUri()Ljava/lang/String;

    move-result-object v5

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcn/sharesdk/evernote/f;->c:Lcn/sharesdk/framework/utils/f;

    invoke-virtual {v0, v3, v3}, Lcn/sharesdk/framework/utils/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcn/sharesdk/evernote/f;->c:Lcn/sharesdk/framework/utils/f;

    invoke-virtual {v0, v1, v2}, Lcn/sharesdk/framework/utils/f;->a(Ljava/lang/String;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    move-result-object v0

    iget-object v4, p0, Lcn/sharesdk/evernote/f;->c:Lcn/sharesdk/framework/utils/f;

    invoke-virtual {v4, v0}, Lcn/sharesdk/framework/utils/f;->a(Ljava/util/ArrayList;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-static {}, Lcn/sharesdk/framework/a/h;->a()Lcn/sharesdk/framework/a/h;

    move-result-object v0

    const-string v5, "/oauth"

    invoke-virtual {p0}, Lcn/sharesdk/evernote/f;->c()I

    move-result v6

    invoke-virtual/range {v0 .. v6}, Lcn/sharesdk/framework/a/h;->a(Ljava/lang/String;Ljava/util/ArrayList;Lcn/sharesdk/framework/a/d;Ljava/util/ArrayList;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_3d

    :cond_3c
    return-object v3

    :cond_3d
    const-string v1, "&"

    invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    new-instance v3, Ljava/util/HashMap;

    invoke-direct {v3}, Ljava/util/HashMap;-><init>()V

    array-length v2, v1

    move v0, v7

    :goto_4a
    if-ge v0, v2, :cond_3c

    aget-object v4, v1, v0

    if-nez v4, :cond_53

    :cond_50
    :goto_50
    add-int/lit8 v0, v0, 0x1

    goto :goto_4a

    :cond_53
    const-string v5, "="

    invoke-virtual {v4, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    array-length v5, v4

    const/4 v6, 0x2

    if-lt v5, v6, :cond_50

    aget-object v5, v4, v7

    const/4 v6, 0x1

    aget-object v4, v4, v6

    invoke-virtual {v3, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_50
.end method

.method public a(Landroid/content/Context;Ljava/lang/String;)Ljava/util/HashMap;
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation

    const/16 v5, 0xb

    const/4 v4, 0x1

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcn/sharesdk/evernote/f;->e:Lcn/sharesdk/evernote/a;

    invoke-virtual {v1}, Lcn/sharesdk/evernote/a;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "/edam/user"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    new-instance v0, Lcn/sharesdk/evernote/c;

    invoke-direct {v0}, Lcn/sharesdk/evernote/c;-><init>()V

    invoke-virtual {v0}, Lcn/sharesdk/evernote/c;->a()I

    move-result v6

    new-instance v3, Lcn/sharesdk/framework/a/a;

    invoke-direct {v3}, Lcn/sharesdk/framework/a/a;-><init>()V

    if-nez p2, :cond_9d

    const-string v2, "getUser"

    invoke-virtual {v0, v2, v4}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;I)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v0, v5, v4}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    iget-object v2, p0, Lcn/sharesdk/evernote/f;->a:Lcn/sharesdk/framework/Platform;

    invoke-virtual {v2}, Lcn/sharesdk/framework/Platform;->getDb()Lcn/sharesdk/framework/PlatformDb;

    move-result-object v2

    invoke-virtual {v2}, Lcn/sharesdk/framework/PlatformDb;->getToken()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v0}, Lcn/sharesdk/evernote/c;->b()[B

    move-result-object v0

    invoke-virtual {v3, v0}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    :goto_54
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "Content-Type"

    const-string v5, "application/x-thrift"

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "Cache-Control"

    const-string v5, "no-transform"

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "Accept"

    const-string v5, "application/x-thrift"

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "User-Agent"

    invoke-direct {p0, p1}, Lcn/sharesdk/evernote/f;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcn/sharesdk/framework/a/h;->a()Lcn/sharesdk/framework/a/h;

    move-result-object v0

    const-string v4, "/edam/user"

    invoke-virtual {p0}, Lcn/sharesdk/evernote/f;->c()I

    move-result v5

    invoke-virtual/range {v0 .. v5}, Lcn/sharesdk/framework/a/h;->a(Ljava/lang/String;Ljava/util/ArrayList;Lcn/sharesdk/framework/a/c;Ljava/lang/String;I)Ljava/io/InputStream;

    move-result-object v0

    if-nez v0, :cond_bc

    const/4 v0, 0x0

    :goto_9c
    return-object v0

    :cond_9d
    const-string v2, "getPublicUserInfo"

    invoke-virtual {v0, v2, v4}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;I)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v0, v5, v4}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v0, p2}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;)[B

    move-result-object v2

    invoke-virtual {v3, v2}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v0}, Lcn/sharesdk/evernote/c;->b()[B

    move-result-object v0

    invoke-virtual {v3, v0}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    goto :goto_54

    :cond_bc
    new-instance v1, Lcn/sharesdk/evernote/b;

    invoke-direct {v1}, Lcn/sharesdk/evernote/b;-><init>()V

    invoke-virtual {v1, v0, v6}, Lcn/sharesdk/evernote/b;->a(Ljava/io/InputStream;I)V

    invoke-virtual {v1}, Lcn/sharesdk/evernote/b;->a()I

    move-result v0

    const/4 v2, 0x3

    if-ne v0, v2, :cond_d5

    new-instance v0, Ljava/lang/Throwable;

    invoke-virtual {v1}, Lcn/sharesdk/evernote/b;->c()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/Throwable;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_d5
    new-instance v0, Lcn/sharesdk/evernote/o;

    invoke-direct {v0, v1}, Lcn/sharesdk/evernote/o;-><init>(Lcn/sharesdk/evernote/b;)V

    invoke-virtual {v0}, Lcn/sharesdk/evernote/o;->a()Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v1}, Lcn/sharesdk/evernote/b;->j()V

    goto :goto_9c
.end method

.method public a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;[Ljava/lang/String;Z)Ljava/util/HashMap;
    .registers 19
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/util/ArrayList",
            "<",
            "Lcn/sharesdk/evernote/g",
            "<*>;>;[",
            "Ljava/lang/String;",
            "Z)",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation

    const/4 v1, 0x0

    if-eqz p3, :cond_d

    invoke-direct {p0, p1, p3}, Lcn/sharesdk/evernote/f;->b(Landroid/content/Context;Ljava/lang/String;)Ljava/util/HashMap;

    move-result-object v1

    if-nez v1, :cond_d

    invoke-direct {p0, p1, p3, p2}, Lcn/sharesdk/evernote/f;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/util/HashMap;

    move-result-object v1

    :cond_d
    new-instance v5, Ljava/util/ArrayList;

    invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V

    move-object/from16 v0, p5

    invoke-direct {p0, v0, v5}, Lcn/sharesdk/evernote/f;->a(Ljava/util/ArrayList;Ljava/util/ArrayList;)Ljava/lang/String;

    move-result-object v6

    iget-object v2, p0, Lcn/sharesdk/evernote/f;->d:Ljava/lang/String;

    new-instance v7, Lcn/sharesdk/evernote/c;

    invoke-direct {v7}, Lcn/sharesdk/evernote/c;-><init>()V

    invoke-virtual {v7}, Lcn/sharesdk/evernote/c;->a()I

    move-result v8

    new-instance v4, Lcn/sharesdk/framework/a/e;

    invoke-direct {v4}, Lcn/sharesdk/framework/a/e;-><init>()V

    new-instance v3, Lcn/sharesdk/framework/a/a;

    invoke-direct {v3}, Lcn/sharesdk/framework/a/a;-><init>()V

    const-string v9, "createNote"

    const/4 v10, 0x1

    invoke-virtual {v7, v9, v10}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;I)[B

    move-result-object v9

    invoke-virtual {v3, v9}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const/16 v9, 0xb

    const/4 v10, 0x1

    invoke-virtual {v7, v9, v10}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v9

    invoke-virtual {v3, v9}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    iget-object v9, p0, Lcn/sharesdk/evernote/f;->a:Lcn/sharesdk/framework/Platform;

    invoke-virtual {v9}, Lcn/sharesdk/framework/Platform;->getDb()Lcn/sharesdk/framework/PlatformDb;

    move-result-object v9

    invoke-virtual {v9}, Lcn/sharesdk/framework/PlatformDb;->getToken()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v7, v9}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;)[B

    move-result-object v9

    invoke-virtual {v3, v9}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const/16 v9, 0xc

    const/4 v10, 0x2

    invoke-virtual {v7, v9, v10}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v9

    invoke-virtual {v3, v9}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    if-eqz p4, :cond_6f

    const/16 v9, 0xb

    const/4 v10, 0x2

    invoke-virtual {v7, v9, v10}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v9

    invoke-virtual {v3, v9}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v7, p4}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;)[B

    move-result-object v9

    invoke-virtual {v3, v9}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    :cond_6f
    if-eqz v6, :cond_82

    const/16 v9, 0xb

    const/4 v10, 0x3

    invoke-virtual {v7, v9, v10}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v9

    invoke-virtual {v3, v9}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v7, v6}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;)[B

    move-result-object v6

    invoke-virtual {v3, v6}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    :cond_82
    if-eqz v1, :cond_a0

    const/16 v6, 0xb

    const/16 v9, 0xb

    invoke-virtual {v7, v6, v9}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v6

    invoke-virtual {v3, v6}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const-string v6, "guid"

    invoke-virtual {v1, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v7, v1}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;)[B

    move-result-object v1

    invoke-virtual {v3, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    :cond_a0
    if-eqz v5, :cond_dd

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_dd

    const/16 v1, 0xf

    const/16 v6, 0xd

    invoke-virtual {v7, v1, v6}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v1

    invoke-virtual {v3, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const/16 v1, 0xf

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v6

    invoke-virtual {v7, v1, v6}, Lcn/sharesdk/evernote/c;->b(II)[B

    move-result-object v1

    invoke-virtual {v3, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v4, v3}, Lcn/sharesdk/framework/a/e;->a(Lcn/sharesdk/framework/a/c;)Lcn/sharesdk/framework/a/e;

    invoke-virtual {v5}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_c7
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_d7

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/HashMap;

    invoke-direct {p0, v1, v4, v7}, Lcn/sharesdk/evernote/f;->a(Ljava/util/HashMap;Lcn/sharesdk/framework/a/e;Lcn/sharesdk/evernote/c;)V

    goto :goto_c7

    :cond_d7
    new-instance v1, Lcn/sharesdk/framework/a/a;

    invoke-direct {v1}, Lcn/sharesdk/framework/a/a;-><init>()V

    move-object v3, v1

    :cond_dd
    if-eqz p6, :cond_10d

    move-object/from16 v0, p6

    array-length v1, v0

    if-lez v1, :cond_10d

    const/16 v1, 0xf

    const/16 v5, 0xf

    invoke-virtual {v7, v1, v5}, Lcn/sharesdk/evernote/c;->a(II)[B

    move-result-object v1

    invoke-virtual {v3, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    const/16 v1, 0xb

    move-object/from16 v0, p6

    array-length v5, v0

    invoke-virtual {v7, v1, v5}, Lcn/sharesdk/evernote/c;->b(II)[B

    move-result-object v1

    invoke-virtual {v3, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    move-object/from16 v0, p6

    array-length v5, v0

    const/4 v1, 0x0

    :goto_ff
    if-ge v1, v5, :cond_10d

    aget-object v6, p6, v1

    invoke-virtual {v7, v6}, Lcn/sharesdk/evernote/c;->a(Ljava/lang/String;)[B

    move-result-object v6

    invoke-virtual {v3, v6}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    add-int/lit8 v1, v1, 0x1

    goto :goto_ff

    :cond_10d
    invoke-virtual {v7}, Lcn/sharesdk/evernote/c;->b()[B

    move-result-object v1

    invoke-virtual {v3, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v7}, Lcn/sharesdk/evernote/c;->b()[B

    move-result-object v1

    invoke-virtual {v3, v1}, Lcn/sharesdk/framework/a/a;->a([B)Lcn/sharesdk/framework/a/a;

    invoke-virtual {v4, v3}, Lcn/sharesdk/framework/a/e;->a(Lcn/sharesdk/framework/a/c;)Lcn/sharesdk/framework/a/e;

    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    new-instance v1, Lcn/sharesdk/framework/a/d;

    const-string v5, "Content-Type"

    const-string v6, "application/x-thrift"

    invoke-direct {v1, v5, v6}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v1, Lcn/sharesdk/framework/a/d;

    const-string v5, "Cache-Control"

    const-string v6, "no-transform"

    invoke-direct {v1, v5, v6}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v1, Lcn/sharesdk/framework/a/d;

    const-string v5, "Accept"

    const-string v6, "application/x-thrift"

    invoke-direct {v1, v5, v6}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v1, Lcn/sharesdk/framework/a/d;

    const-string v5, "User-Agent"

    invoke-direct {p0, p1}, Lcn/sharesdk/evernote/f;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v1, v5, v6}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcn/sharesdk/framework/a/h;->a()Lcn/sharesdk/framework/a/h;

    move-result-object v1

    const-string v5, "url"

    invoke-virtual {p0}, Lcn/sharesdk/evernote/f;->c()I

    move-result v6

    invoke-virtual/range {v1 .. v6}, Lcn/sharesdk/framework/a/h;->a(Ljava/lang/String;Ljava/util/ArrayList;Lcn/sharesdk/framework/a/c;Ljava/lang/String;I)Ljava/io/InputStream;

    move-result-object v1

    if-nez v1, :cond_167

    const/4 v1, 0x0

    :goto_166
    return-object v1

    :cond_167
    new-instance v2, Lcn/sharesdk/evernote/b;

    invoke-direct {v2}, Lcn/sharesdk/evernote/b;-><init>()V

    invoke-virtual {v2, v1, v8}, Lcn/sharesdk/evernote/b;->a(Ljava/io/InputStream;I)V

    invoke-virtual {v2}, Lcn/sharesdk/evernote/b;->a()I

    move-result v1

    const/4 v3, 0x3

    if-ne v1, v3, :cond_180

    new-instance v1, Ljava/lang/Throwable;

    invoke-virtual {v2}, Lcn/sharesdk/evernote/b;->c()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/Throwable;-><init>(Ljava/lang/String;)V

    throw v1

    :cond_180
    new-instance v1, Lcn/sharesdk/evernote/j;

    invoke-direct {v1, v2}, Lcn/sharesdk/evernote/j;-><init>(Lcn/sharesdk/evernote/b;)V

    invoke-virtual {v1}, Lcn/sharesdk/evernote/j;->a()Ljava/util/HashMap;

    move-result-object v1

    invoke-virtual {v2}, Lcn/sharesdk/evernote/b;->j()V

    goto :goto_166
.end method

.method public a(Landroid/content/Context;Lcn/sharesdk/framework/PlatformActionListener;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;[Ljava/lang/String;Z)V
    .registers 12
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Lcn/sharesdk/framework/PlatformActionListener;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/util/ArrayList",
            "<",
            "Lcn/sharesdk/evernote/g",
            "<*>;>;[",
            "Ljava/lang/String;",
            "Z)V"
        }
    .end annotation

    const/4 v0, 0x0

    if-eqz p4, :cond_3e

    :try_start_3
    invoke-direct {p0, p1, p4}, Lcn/sharesdk/evernote/f;->b(Landroid/content/Context;Ljava/lang/String;)Ljava/util/HashMap;

    move-result-object v1

    if-nez v1, :cond_d

    invoke-direct {p0, p1, p4, p3}, Lcn/sharesdk/evernote/f;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/util/HashMap;

    move-result-object v1

    :cond_d
    :goto_d
    if-eqz v1, :cond_1b

    const-string v2, "guid"

    invoke-virtual {v1, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    if-eqz v1, :cond_1b

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    :cond_1b
    new-instance v1, Lcn/sharesdk/evernote/n;

    invoke-direct {v1}, Lcn/sharesdk/evernote/n;-><init>()V

    iget-object v2, p0, Lcn/sharesdk/evernote/f;->a:Lcn/sharesdk/framework/Platform;

    invoke-virtual {v1, v2, p2}, Lcn/sharesdk/evernote/n;->a(Lcn/sharesdk/framework/Platform;Lcn/sharesdk/framework/PlatformActionListener;)V

    invoke-virtual {v1, v0, p5, p6, p7}, Lcn/sharesdk/evernote/n;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;[Ljava/lang/String;)V

    iget-object v0, p0, Lcn/sharesdk/evernote/f;->a:Lcn/sharesdk/framework/Platform;

    invoke-virtual {v0}, Lcn/sharesdk/framework/Platform;->getContext()Landroid/content/Context;

    move-result-object v0

    const/4 v2, 0x0

    invoke-virtual {v1, v0, v2}, Lcn/sharesdk/evernote/n;->show(Landroid/content/Context;Landroid/content/Intent;)V
    :try_end_32
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_32} :catch_33

    :cond_32
    :goto_32
    return-void

    :catch_33
    move-exception v0

    if-eqz p2, :cond_32

    iget-object v1, p0, Lcn/sharesdk/evernote/f;->a:Lcn/sharesdk/framework/Platform;

    const/16 v2, 0x9

    invoke-interface {p2, v1, v2, v0}, Lcn/sharesdk/framework/PlatformActionListener;->onError(Lcn/sharesdk/framework/Platform;ILjava/lang/Throwable;)V

    goto :goto_32

    :cond_3e
    move-object v1, v0

    goto :goto_d
.end method

.method public a(Lcn/sharesdk/framework/PlatformDb;)V
    .registers 3

    const-string v0, "notestoreUrl"

    invoke-virtual {p1, v0}, Lcn/sharesdk/framework/PlatformDb;->get(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcn/sharesdk/evernote/f;->d:Ljava/lang/String;

    return-void
.end method

.method public a(Lcn/sharesdk/framework/authorize/AuthorizeListener;)V
    .registers 2

    invoke-virtual {p0, p1}, Lcn/sharesdk/evernote/f;->b(Lcn/sharesdk/framework/authorize/AuthorizeListener;)V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .registers 3

    new-instance v0, Lcn/sharesdk/evernote/a;

    invoke-direct {v0, p1}, Lcn/sharesdk/evernote/a;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcn/sharesdk/evernote/f;->e:Lcn/sharesdk/evernote/a;

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .registers 5

    iget-object v0, p0, Lcn/sharesdk/evernote/f;->c:Lcn/sharesdk/framework/utils/f;

    const-string v1, "en-oauth://callback"

    invoke-virtual {v0, p1, p2, v1}, Lcn/sharesdk/framework/utils/f;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public b(Ljava/lang/String;)Ljava/util/HashMap;
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    const/4 v3, 0x0

    const/4 v7, 0x0

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_10

    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "Must provide a valid string as verifier"

    invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_10
    iget-object v0, p0, Lcn/sharesdk/evernote/f;->e:Lcn/sharesdk/evernote/a;

    invoke-virtual {v0}, Lcn/sharesdk/evernote/a;->b()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "oauth_token"

    iget-object v5, p0, Lcn/sharesdk/evernote/f;->c:Lcn/sharesdk/framework/utils/f;

    invoke-virtual {v5}, Lcn/sharesdk/framework/utils/f;->a()Lcn/sharesdk/framework/utils/f$b;

    move-result-object v5

    iget-object v5, v5, Lcn/sharesdk/framework/utils/f$b;->c:Ljava/lang/String;

    invoke-direct {v0, v4, v5}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Lcn/sharesdk/framework/a/d;

    const-string v4, "oauth_verifier"

    invoke-direct {v0, v4, p1}, Lcn/sharesdk/framework/a/d;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcn/sharesdk/evernote/f;->c:Lcn/sharesdk/framework/utils/f;

    invoke-virtual {v0, v1, v2}, Lcn/sharesdk/framework/utils/f;->a(Ljava/lang/String;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    move-result-object v0

    iget-object v4, p0, Lcn/sharesdk/evernote/f;->c:Lcn/sharesdk/framework/utils/f;

    invoke-virtual {v4, v0}, Lcn/sharesdk/framework/utils/f;->a(Ljava/util/ArrayList;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-static {}, Lcn/sharesdk/framework/a/h;->a()Lcn/sharesdk/framework/a/h;

    move-result-object v0

    const-string v5, "/oauth"

    invoke-virtual {p0}, Lcn/sharesdk/evernote/f;->c()I

    move-result v6

    invoke-virtual/range {v0 .. v6}, Lcn/sharesdk/framework/a/h;->a(Ljava/lang/String;Ljava/util/ArrayList;Lcn/sharesdk/framework/a/d;Ljava/util/ArrayList;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_54

    :cond_53
    return-object v3

    :cond_54
    const-string v1, "&"

    invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    new-instance v3, Ljava/util/HashMap;

    invoke-direct {v3}, Ljava/util/HashMap;-><init>()V

    array-length v2, v1

    move v0, v7

    :goto_61
    if-ge v0, v2, :cond_53

    aget-object v4, v1, v0

    if-nez v4, :cond_6a

    :cond_67
    :goto_67
    add-int/lit8 v0, v0, 0x1

    goto :goto_61

    :cond_6a
    const-string v5, "="

    invoke-virtual {v4, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    array-length v5, v4

    const/4 v6, 0x2

    if-lt v5, v6, :cond_67

    aget-object v5, v4, v7

    const/4 v6, 0x1

    aget-object v4, v4, v6

    const-string v6, "utf-8"

    invoke-static {v4, v6}, Ljava/net/URLDecoder;->decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_67
.end method

.method public b()Z
    .registers 4

    const/4 v0, 0x0

    const-string v1, "com.evernote.action.CREATE_NEW_NOTE"

    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcn/sharesdk/evernote/f;->a:Lcn/sharesdk/framework/Platform;

    invoke-virtual {v1}, Lcn/sharesdk/framework/Platform;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    invoke-virtual {v1, v2, v0}, Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;

    move-result-object v1

    if-eqz v1, :cond_19

    const/4 v0, 0x1

    :cond_19
    return v0
.end method

.method public getAuthorizeUrl()Ljava/lang/String;
    .registers 5

    const/4 v1, 0x0

    :try_start_1
    invoke-virtual {p0}, Lcn/sharesdk/evernote/f;->a()Ljava/util/HashMap;
    :try_end_4
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_4} :catch_a

    move-result-object v0

    move-object v2, v0

    :goto_6
    if-nez v2, :cond_10

    move-object v0, v1

    :goto_9
    return-object v0

    :catch_a
    move-exception v0

    invoke-static {v0}, Lcn/sharesdk/framework/utils/e;->b(Ljava/lang/Throwable;)I

    move-object v2, v1

    goto :goto_6

    :cond_10
    const-string v0, "oauth_token"

    invoke-virtual {v2, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_20

    move-object v0, v1

    goto :goto_9

    :cond_20
    iget-object v3, p0, Lcn/sharesdk/evernote/f;->c:Lcn/sharesdk/framework/utils/f;

    const-string v1, "oauth_token_secret"

    invoke-virtual {v2, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v3, v0, v1}, Lcn/sharesdk/framework/utils/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcn/sharesdk/evernote/f;->e:Lcn/sharesdk/evernote/a;

    invoke-virtual {v1, v0}, Lcn/sharesdk/evernote/a;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_9
.end method

.method public getAuthorizeWebviewClient(Lcn/sharesdk/framework/authorize/g;)Lcn/sharesdk/framework/authorize/b;
    .registers 3

    new-instance v0, Lcn/sharesdk/evernote/h;

    invoke-direct {v0, p1}, Lcn/sharesdk/evernote/h;-><init>(Lcn/sharesdk/framework/authorize/g;)V

    return-object v0
.end method

.method public getRedirectUri()Ljava/lang/String;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/f;->c:Lcn/sharesdk/framework/utils/f;

    invoke-virtual {v0}, Lcn/sharesdk/framework/utils/f;->a()Lcn/sharesdk/framework/utils/f$b;

    move-result-object v0

    iget-object v0, v0, Lcn/sharesdk/framework/utils/f$b;->e:Ljava/lang/String;

    return-object v0
.end method
